package com.itheima.tlias.tliasweb.service;

import com.itheima.tlias.tliasweb.entity.Dept;
import com.itheima.tlias.tliasweb.pojo.AddDeptDTO;

import java.util.List;

//部门业务规则
public interface DeptService {

    List<Dept> list();

    boolean deleteById(Integer id);

    boolean add(AddDeptDTO dto);

    Dept getById(Integer id);

    boolean update(Dept dept);

    void dismissDept(Integer id)throws Exception;
}